package Lesson20;

public class Person {
	private String name;

	void setName(String name) {
		this.name = name;
	}
	boolean hasSameName(Person other){
		try{
			
		
		return this.name.equals(other.name);
		}
		catch(NullPointerException e){
			System.out.println("Problem with names!");
			return false;
		}
	}
}
